<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnOldStepWorkflowIdInEntityTable extends AbstractMigration
{
    public function up()
    {
        $this->table('entity')
            ->addColumn('old_step_workflow_id', 'integer', ['null' => false, 'default' => 0, 'limit' => 11, 'comment' => '老工序流id', 'signed' => false])
            ->save();

    }

    public function down()
    {
        $this->table('entity')->removeColumn('old_step_workflow_id')->save();
    }
}
